package com.heima.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.heima.mapper.BusinessMapper;
import com.heima.pojo.Business;
import com.heima.service.BusinessService;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 赵超
 */
@Service
@RequiredArgsConstructor
public class BusinessServiceImpl implements BusinessService {
    private final BusinessMapper businessMapper;

    @Override
    public List<Business> list() {
        return businessMapper.selectList(new LambdaQueryWrapper<>());
    }
}
